package com.eastfair.config.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * Date:2021/8/13
 * Time:13:13
 *
 * @author zjn
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class InterfaceAccount {

    /**
     * 校验标识 获取单个问卷配置
     */
    public interface VerifyGetByEntity {
    }

    /**
     * 标识id
     */
    @JsonFormat(shape= JsonFormat.Shape.STRING)
    private Long flagId;

    /**
     * 平台类型
     */
    @NotBlank(groups = {VerifyGetByEntity.class})
    private String platformType;

    /**
     * 接口配置JSON
     */
    private String account;

    /**
     * 接口配置JSON数组
     */
    private String accountList;

    /**
     * 启用状态
     */
    private Integer isEnabled;

}
